unit FormResource_U;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs,AcroMultiResource, StdCtrls, AcroMultiDD;

type
  TForm1 = class(TForm)
    AcroMultiStreamDD1: TAcroMultiStreamDD;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    procedure FormCreate(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

ResourceString
  SAcroprise='Acroprise Inc.';
  
implementation

{$R *.dfm}

procedure TForm1.Button2Click(Sender: TObject);
begin
  ResourceStorage.Hook;
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
  ResourceStorage.UnHook;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  ResourceStorage.DefaultReplaceOption.DDName:=AcroMultiStreamDD1.DDName;
  ResourceStorage.DefaultReplaceOption.SystemCulture:=true;
  ResourceStorage.DefaultReplaceOption.SeqNo:='0';
end;

procedure TForm1.FormDestroy(Sender: TObject);
begin
  //ResourceStorage.UnHook;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
//  ShowMessage(SAcroprise);
  Application.MessageBox(PChar(SAcroprise),PChar(Application.Title),mb_OK);
end;

end.
